﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo
{
    [NHibernateEntity(Table = "apl_UserViews")]
    public class UserView
    {
        public UserView() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string Name { get; set; }

        [Property]
        public virtual string ViewString { get; set; }

        [Property]
        public virtual string ViewWidths { get; set; }

        [Property]
        public virtual string Filter { get; set; }

        [Property]
        public virtual string OrderBy { get; set; }

        [Property]
        public virtual OrderDirection OrderDirection { get; set; }

        [BelongsTo(Column = "ID_Entity")]
        public virtual Entity Entity { get; set; }

        [BelongsTo(Column = "ID_MenuItem")]
        public virtual MenuItem MenuItem { get; set; }

        [BelongsTo(Column = "ID_User")]
        public virtual User User { get; set; }
    }
}
